home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
501_600
/
DISK0510
/
DISK0510.ZIP
/
SECOND1
< prev
next >
Wrap
Text File
|
1985-08-08
|
512b
|
22 lines
PROGRAM SECOND1; {an example of simple input and output; also, cursor control}
VAR
NAME : STRING;
COUNT : INTEGER;
BEGIN
CURSOR(0,0);
WRITELN('upper left');
CURSOR(30,0);
WRITELN('upper right');
CURSOR(0,24);
WRITELN('lower left');
CURSOR(30,24);
WRITELN('lower right');
CURSOR(0,10);
WRITE("What's your name? ");
READLN(NAME);
FOR COUNT := 1 TO 5 DO
WRITELN('Hi, ', NAME, '!');
END.